<template>
  <div class="content">
      <div  v-html="info.content">
  </div>
  </div>
</template>
<script>
import { getDetail } from "@/api/article";

export default {
  data() {
    return {
      info: {},
    };
  },
  async created() {
    let { id } = this.$route.params;
    let info = await getDetail({ id });
    this.info = info;
  },
  async mounted() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.content {
  background: #fff;
  min-height: 100vh;
  width: 100vw;
  position: absolute;
}
::v-deep img {
  width: 100%;
  object-fit: contain;
}
::v-deep a {
  word-break: break-all;
}
</style>
